package com.vdong.sharding.rule.table;

import org.apache.shardingsphere.api.sharding.standard.RangeShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.RangeShardingValue;

import java.util.Collection;

public class MyTableRangeShardingAlgorithm implements RangeShardingAlgorithm<Long> {

    public Collection<String> doSharding(Collection<String> collection, RangeShardingValue<Long> rangeShardingValue) {
        //用户范围查询无意义,直接返回全部表
        return collection;
    }
}
